package org.srini.interview.sample;

public class TreeNode {
	
	private TreeNode rightNode;
	private TreeNode leftNode;
	private int nodeValue;
	
/*	private TreeNode() {
		
	}
*/	
	public TreeNode(TreeNode right, TreeNode left, int value) {
		this.rightNode = right;
		this.leftNode = left;
		this.nodeValue = value;
	}

	public TreeNode getRight() {
		return rightNode;
	}

	public void setRight(TreeNode right) {
		this.rightNode = right;
	}

	public TreeNode getLeft() {
		return leftNode;
	}

	public void setLeft(TreeNode left) {
		this.leftNode = left;
	}

	public int getValue() {
		return nodeValue;
	}

	public void setValue(int value) {
		this.nodeValue = value;
	}
	
	

}
